
function [vectorOut, lastOut] =moveback(vectorIn)
%Function to reduce the vector
    lastOut=vectorIn(end);
    vectorOut=vectorIn(1:max(size(vectorIn))-1);  %reduces vector one order
end